package com.ruoyi.common.base.ai.domain;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;

/**
 * apiKey管理对象 ai_api_key
 *
 * @author gdk
 * @date 2023-05-29
 */
@Data
public class AIApiKey extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 模型
     */
    @Excel(name = "模型")
    private String model;

    /**
     * apiKey
     */
    @Excel(name = "apiKey")
    private String apiKey;

    /**
     * 封禁原因
     */
    @Excel(name = "封禁原因")
    private String disableReason;

    /**
     * $column.columnComment
     */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String createName;

    /**
     * $column.columnComment
     */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String updateName;

    /**
     * 状态（0封禁,1正常）
     */
    @Excel(name = "状态")
    private String status;

    /**
     * $column.columnComment
     */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String isDeleted;
}
